package com.google.code.chaotic.client;

import com.google.code.chaotic.dto.UserDto;

public class ClientSessionManager {

	private static ClientSessionManager instance;

	private ClientSessionManager() {
	}

	public static synchronized ClientSessionManager getInstance() {
		if (instance == null)
			instance = new ClientSessionManager();
		return instance;
	}

	public static String getId() {
		return getInstance().getSessionId();
	}

	//

	private String sessionId;
	private UserDto userNoPass;

	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}

	public String getSessionId() {
		return sessionId;
	}

	public void setUserNoPass(UserDto userNoPass) {
		this.userNoPass = userNoPass;
	}

	public UserDto getUserNoPass() {
		return userNoPass;
	}
}
